package com.sxjh.entity.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.sxjh.entity.PageEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class FactoryListParam extends PageEntity {

    /**
     * 工厂名称
     */
    @ApiModelProperty(value = "工厂名称")
    private String name;

    @ApiModelProperty(value = "角色id，多个逗号分隔")
    @TableField(value = "role_id")
    private String roleId;

    @ApiModelProperty(value = "角色name，多个逗号分隔")
    @TableField(value = "role_name")
    private String roleName;

    /**
     * 角色id，多个逗号分隔
     */
    @ApiModelProperty(value = "角色id，多个逗号分隔")
    private List<Integer> roleIds;

    /**
     * 角色id，多个逗号分隔
     */
    @ApiModelProperty(value = "角色name，多个逗号分隔")
    private List<String> roleNames;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "删除标记,1:否,-1:是")
    private Integer delFlag = 1;

    /**
     * 唯一ID
     */
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Integer createdBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private Integer updatedBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;

}
